package com.ems.service;

import com.alibaba.fastjson.JSONObject;
import com.ems.dto.*;
import com.ems.entity.Question;
import com.ems.entity.Teacher;

import java.util.List;

// 1/20宋
public interface TeacherService {

    Teacher queryByUsername(String username);


    List<ExamInfo> inviTeacherId(String username);

    boolean putExam(JSONObject jsonObject);

    boolean register(JSONObject jsonObject);

    boolean delExam(Integer eid,Integer tid);

    List<QsubjectiveQuestions> queryQuestion_subjectiveQuestions(String subject,Integer difficulty,String point);

    List<Choice> queryQuestion_singleChoice(String subject,Integer difficulty,String point);

    List<Choice> queryQuestion_multipleChoice(String subject,Integer difficulty,String point);

    StudentAnswer markPaper(Integer eid,Integer uid);

    TeacherExamPaper getExamPaper(Integer eid);

    Integer creatExamPaper(JSONObject jsonObject);

    //自动批阅考生客观题答案
    void checkAnswer(Integer eid);

    ExamAnalyze examAnalyze(Integer eid);

    void putQuestion(Question question);

    boolean studentScorePut(JSONObject jsonObject);

    List<ExamInfo> getExamInfo(String username);

    Object getStudentPaper(Integer eid);

    Object calculateScore(JSONObject jsonObject);


}
